package com.rui.study.algorithm.T_class_object;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Random;

public class Fruits {

    private static final Logger LOGGER = LoggerFactory.getLogger(Fruits.class);

    public static final int INSTANCE_ID = 0;

    public static final int NUMBER = getNumber();

    public static final int EAGER_NUMBER = new Random().nextInt(10);

    public static final String COLOR;



    static {
        COLOR = "RED";
        LOGGER.info("Fruits class is initialized");
    }

    private static int getNumber() {
        Random random = new Random(43);
        return random.nextInt(10);
    }

}
